home *** CD-ROM | disk | FTP | other *** search
-
-
-
- FCNTL(3) MINTLIB LIBRARY FUNCTIONS FCNTL(3)
-
-
- N✓NA✓AM✓ME✓E
- fcntl - file control
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <fcntl.h>
-
- int fcntl(int fildes, int cmd, ...);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- fcntl provides for control over open files. fildes is a
- file descriptor obtained from a creat, dup, fcntl, open or
- pipe call.
-
- Since the fcntl call is nothing but an interface to the
- Fcntl system call, the user is referred to the Fcntl page
- for an overview of available commands.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- c✓cr✓re✓ea✓at✓t(✓(3✓3)✓),✓, d✓du✓up✓p(✓(3✓3)✓),✓, f✓fc✓cn✓nt✓tl✓l(✓(3✓3)✓),✓, o✓op✓pe✓en✓n(✓(3✓3)✓),✓, p✓pi✓ip✓pe✓e(✓(3✓3)✓)
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- See Fcntl for a detailed description of return codes. In
- general, -1 is returned on failure; any other value indi-
- cates success; the meaning is dependent on the command
- executed.
-
- N✓NO✓OT✓TE✓ES✓S
- Under TOS, fcntl always returns -1.
-
- The available commands for Fcntl tend to increase all the
- time; the current list is likely to be out of date.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-